{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-list" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$semester_data.semester_name%}教师学期课时汇总表</p>
                </div>
                <div class="box-body">
					<form name="myform" method="get" action="">
                     <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   学期：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="semester_id">
                                 <option value="0"> 请选择</option>
								{%foreach from=$semester_lists key=key item=value%}
                                 <option value="{%$value.semester_id%}" {%if $semester_id==$value.semester_id%}selected{%/if%}> {%$value.semester_name%}</option>
								{%/foreach%}
                               </select> 
						  </div> 
				    </div>
					<div class="col-md-2 col-xs-12">
						<input type="hidden" name="a" value="syllabus.semester">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					</form>
                    <div style="clear:both; height:2px;"></div> 
                      <table class="table table-bordered">   
                             <tr>
                                <td>教师编号</td>
                                <td>教师姓名</td>
                                <td>周课时量</td>
								{%foreach from=$month_lists key=key item=value%}
                                <td>第{%$key%}学月</td>
								{%/foreach%}
                                <td>期末合计总课时</td>
							 </tr>
							{%foreach from=$data_lists key=key item=value%}
                             <tr>
							    <td>{%$value.staff_number%}</td>
                                <td>{%$value.staff_name%}</td>
                                <td>{%$value.week_count%}</td>
								{%foreach from=$value.month key=k item=v%}
                                <td>{%$v%}</td>
								{%/foreach%}
                                <td>{%$value.semester_count%}</td>
							 </tr>
							{%/foreach%}
						 </table>      	   
				    </div><!--box-body --> 
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
